package com.framewiki.gpt.service;

import com.framewiki.gpt.dto.request.CreateChatCompletionDto;

/**
 * @ProjectName: framewiki-gpt
 * @Package: com.framewiki.gpt.service
 * @ClassName: TokenService
 * @Description: 受权服务
 * @Author: xiaLin
 * @Date: 2023/6/21 23:45
 * @Version: 1.0
 */
public interface TokenService {

  /**
   * 默认模型
   */
  String model = "gpt-3.5-turbo-0301";

  /**
   * 偏移Id
   */
  String OFFSET_ID = "8+";

  /**
   * 获取受权
   *
   * @param content 请求内容
   * @param token   受权信息
   * @return 返回结果
   */
  String getToken(CreateChatCompletionDto content, String token);
}
